#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_SmallImageEffect3.h"
#include "UiCommon.h"

class SmallImageEffect3 : public QWidget
{
    Q_OBJECT

public:
    SmallImageEffect3(QWidget *parent = Q_NULLPTR);
    
    Effect3Info effectInfo();
    void setEffectInfo(Effect3Info info);

signals:
    void sigView(QStringList files);

protected slots:    
    void on_btnSetCoorCount_clicked();

    void on_btnSelWater_clicked();
    void on_btnLoadBack_clicked();    
    void on_btnSelSave_clicked();    

    void on_boxEffect_currentIndexChanged(int index);
    void on_btnAdd_clicked();
    void on_btnDel_clicked();
    void on_btnChg_clicked();

private:        
    void uiToEffect(Effect3Data &data);
    void effectToUi(Effect3Data data);
    void updateList();

    Effect3Info m_effect;
    int m_preIndex;
    Ui::SmallImageEffect3Class ui;
};
